<?php 
/**
 * 感应控制轮询脚本（Linux 终端有效）
 */
 
$c = include(__DIR__."/../config.php");

set_time_limit(0);

$url = $c['WEB_HOST']."/api/controlObserver";

while(1) {
	exec("curl $url > /dev/null 2>&1");
	sleep(10);
}